/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.scrumpmt.domain;

import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author agumpg
 */
@Entity
@Table(name = "REUNION")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Reunion.findAll", query = "SELECT r FROM Reunion r"),
    @NamedQuery(name = "Reunion.findById", query = "SELECT r FROM Reunion r WHERE r.id = :id"),
    @NamedQuery(name = "Reunion.findByFec", query = "SELECT r FROM Reunion r WHERE r.fec = :fec"),
    @NamedQuery(name = "Reunion.findByComentarios", query = "SELECT r FROM Reunion r WHERE r.comentarios = :comentarios")})
public class Reunion extends BaseEntity {
    @Column(name = "fec", nullable=false)
    @Temporal(TemporalType.DATE)
    private Date fec;
    @Column(name = "comentarios", nullable=true)
    private String comentarios;
    @JoinColumn(name = "id_sprint_fk", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private Sprint idSprintFk;
    @JoinColumn(name = "id_tipreunion", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private TipoReunion idTipreunion;

    public Reunion() {
    }

    public Date getFec() {
        return fec;
    }

    public void setFec(Date fec) {
        this.fec = fec;
    }

    public String getComentarios() {
        return comentarios;
    }

    public void setComentarios(String comentarios) {
        this.comentarios = comentarios;
    }

    public Sprint getIdSprintFk() {
        return idSprintFk;
    }

    public void setIdSprintFk(Sprint idSprintFk) {
        this.idSprintFk = idSprintFk;
    }

    public TipoReunion getIdTipreunion() {
        return idTipreunion;
    }

    public void setIdTipreunion(TipoReunion idTipreunion) {
        this.idTipreunion = idTipreunion;
    }

}
